package com.ittest.config;


import com.ittest.bean.Dog;
import com.ittest.bean.DogFactoryBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;

//不使用配置文件形式，而使用配置类形式
@ComponentScan({"com.ittest.bean","com.ittest.config"})
public class SpringConfig3 {

    @Bean
    public DogFactoryBean dog(){
        return new DogFactoryBean();
    }
}
